package com.russell.mail.store;

import java.util.Date;
import java.util.List;

import com.russell.util.DateUtil;

public class MailStoreMessage {

    private String attachment;

    private List attachments;

    private Date dateReceived;

    private Date dateSent;

    private String from;

    private String id;

    private int messageNumber;

    private String subject;

    private String text;

    private String to;

    /**
     * @return the attachment
     */
    public String getAttachment() {
        return attachment;
    }

    /**
     * @return the attachments
     */
    public List getAttachments() {
        return attachments;
    }

    /**
     * @return the dateReceived
     */
    public Date getDateReceived() {
        return DateUtil.copyDate(dateReceived);
    }

    /**
     * @return the dateSent
     */
    public Date getDateSent() {
        return DateUtil.copyDate(dateSent);
    }

    /**
     * @return the from
     */
    public String getFrom() {
        return from;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @return the messageNumber
     */
    public int getMessageNumber() {
        return messageNumber;
    }

    /**
     * @return the subject
     */
    public String getSubject() {
        return subject;
    }

    /**
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * @return the to
     */
    public String getTo() {
        return to;
    }

    /**
     * @param attachment
     *            the attachment to set
     */
    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    /**
     * @param attachments
     *            the attachments to set
     */
    public void setAttachments(List attachments) {
        this.attachments = attachments;
    }

    /**
     * @param dateReceived
     *            the dateReceived to set
     */
    public void setDateReceived(Date dateReceived) {
        this.dateReceived = DateUtil.copyDate(dateReceived);
    }

    /**
     * @param dateSent
     *            the dateSent to set
     */
    public void setDateSent(Date dateSent) {
        this.dateSent = DateUtil.copyDate(dateSent);
    }

    /**
     * @param from
     *            the from to set
     */
    public void setFrom(String from) {
        this.from = from;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @param messageNumber
     *            the messageNumber to set
     */
    public void setMessageNumber(int messageNumber) {
        this.messageNumber = messageNumber;
    }

    /**
     * @param subject
     *            the subject to set
     */
    public void setSubject(String subject) {
        this.subject = subject;
    }

    /**
     * @param text
     *            the text to set
     */
    public void setText(String text) {
        this.text = text;
    }

    /**
     * @param to
     *            the to to set
     */
    public void setTo(String to) {
        this.to = to;
    }

}
